﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001393 RID: 5011
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TakeRogueEventHandbookRewardScRsp : IMessage<TakeRogueEventHandbookRewardScRsp>, IMessage, IEquatable<TakeRogueEventHandbookRewardScRsp>, IDeepCloneable<TakeRogueEventHandbookRewardScRsp>, IBufferMessage
	{
		// Token: 0x17003F2F RID: 16175
		// (get) Token: 0x0600E063 RID: 57443 RVA: 0x0025806F File Offset: 0x0025626F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TakeRogueEventHandbookRewardScRsp> Parser
		{
			get
			{
				return TakeRogueEventHandbookRewardScRsp._parser;
			}
		}

		// Token: 0x17003F30 RID: 16176
		// (get) Token: 0x0600E064 RID: 57444 RVA: 0x00258076 File Offset: 0x00256276
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TakeRogueEventHandbookRewardScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003F31 RID: 16177
		// (get) Token: 0x0600E065 RID: 57445 RVA: 0x00258088 File Offset: 0x00256288
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TakeRogueEventHandbookRewardScRsp.Descriptor;
			}
		}

		// Token: 0x0600E066 RID: 57446 RVA: 0x0025808F File Offset: 0x0025628F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeRogueEventHandbookRewardScRsp()
		{
		}

		// Token: 0x0600E067 RID: 57447 RVA: 0x002580A4 File Offset: 0x002562A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeRogueEventHandbookRewardScRsp(TakeRogueEventHandbookRewardScRsp other) : this()
		{
			this.reward_ = ((other.reward_ != null) ? other.reward_.Clone() : null);
			this.retcode_ = other.retcode_;
			this.rewardHandbookEventList_ = other.rewardHandbookEventList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600E068 RID: 57448 RVA: 0x00258101 File Offset: 0x00256301
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeRogueEventHandbookRewardScRsp Clone()
		{
			return new TakeRogueEventHandbookRewardScRsp(this);
		}

		// Token: 0x17003F32 RID: 16178
		// (get) Token: 0x0600E069 RID: 57449 RVA: 0x00258109 File Offset: 0x00256309
		// (set) Token: 0x0600E06A RID: 57450 RVA: 0x00258111 File Offset: 0x00256311
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList Reward
		{
			get
			{
				return this.reward_;
			}
			set
			{
				this.reward_ = value;
			}
		}

		// Token: 0x17003F33 RID: 16179
		// (get) Token: 0x0600E06B RID: 57451 RVA: 0x0025811A File Offset: 0x0025631A
		// (set) Token: 0x0600E06C RID: 57452 RVA: 0x00258122 File Offset: 0x00256322
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17003F34 RID: 16180
		// (get) Token: 0x0600E06D RID: 57453 RVA: 0x0025812B File Offset: 0x0025632B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> RewardHandbookEventList
		{
			get
			{
				return this.rewardHandbookEventList_;
			}
		}

		// Token: 0x0600E06E RID: 57454 RVA: 0x00258133 File Offset: 0x00256333
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TakeRogueEventHandbookRewardScRsp);
		}

		// Token: 0x0600E06F RID: 57455 RVA: 0x00258144 File Offset: 0x00256344
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TakeRogueEventHandbookRewardScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.Reward, other.Reward) && this.Retcode == other.Retcode && this.rewardHandbookEventList_.Equals(other.rewardHandbookEventList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600E070 RID: 57456 RVA: 0x002581A8 File Offset: 0x002563A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.reward_ != null)
			{
				num ^= this.Reward.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			num ^= this.rewardHandbookEventList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600E071 RID: 57457 RVA: 0x0025820B File Offset: 0x0025640B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600E072 RID: 57458 RVA: 0x00258213 File Offset: 0x00256413
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600E073 RID: 57459 RVA: 0x0025821C File Offset: 0x0025641C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.reward_ != null)
			{
				output.WriteRawTag(42);
				output.WriteMessage(this.Reward);
			}
			this.rewardHandbookEventList_.WriteTo(ref output, TakeRogueEventHandbookRewardScRsp._repeated_rewardHandbookEventList_codec);
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600E074 RID: 57460 RVA: 0x00258288 File Offset: 0x00256488
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.reward_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Reward);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			num += this.rewardHandbookEventList_.CalculateSize(TakeRogueEventHandbookRewardScRsp._repeated_rewardHandbookEventList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600E075 RID: 57461 RVA: 0x002582F4 File Offset: 0x002564F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TakeRogueEventHandbookRewardScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.reward_ != null)
			{
				if (this.reward_ == null)
				{
					this.Reward = new ItemList();
				}
				this.Reward.MergeFrom(other.Reward);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this.rewardHandbookEventList_.Add(other.rewardHandbookEventList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600E076 RID: 57462 RVA: 0x0025836D File Offset: 0x0025656D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600E077 RID: 57463 RVA: 0x00258378 File Offset: 0x00256578
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 80U)
				{
					if (num == 42U)
					{
						if (this.reward_ == null)
						{
							this.Reward = new ItemList();
						}
						input.ReadMessage(this.Reward);
						continue;
					}
					if (num == 80U)
					{
						goto IL_52;
					}
				}
				else
				{
					if (num == 82U)
					{
						goto IL_52;
					}
					if (num == 96U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				continue;
				IL_52:
				this.rewardHandbookEventList_.AddEntriesFrom(ref input, TakeRogueEventHandbookRewardScRsp._repeated_rewardHandbookEventList_codec);
			}
		}

		// Token: 0x040058DD RID: 22749
		private static readonly MessageParser<TakeRogueEventHandbookRewardScRsp> _parser = new MessageParser<TakeRogueEventHandbookRewardScRsp>(() => new TakeRogueEventHandbookRewardScRsp());

		// Token: 0x040058DE RID: 22750
		private UnknownFieldSet _unknownFields;

		// Token: 0x040058DF RID: 22751
		public const int RewardFieldNumber = 5;

		// Token: 0x040058E0 RID: 22752
		private ItemList reward_;

		// Token: 0x040058E1 RID: 22753
		public const int RetcodeFieldNumber = 12;

		// Token: 0x040058E2 RID: 22754
		private uint retcode_;

		// Token: 0x040058E3 RID: 22755
		public const int RewardHandbookEventListFieldNumber = 10;

		// Token: 0x040058E4 RID: 22756
		private static readonly FieldCodec<uint> _repeated_rewardHandbookEventList_codec = FieldCodec.ForUInt32(82U);

		// Token: 0x040058E5 RID: 22757
		private readonly RepeatedField<uint> rewardHandbookEventList_ = new RepeatedField<uint>();
	}
}
